package com.qijian.maindata.domain.query;

import com.baomidou.mybatisplus.annotation.TableName;
import com.qijian.common.utils.mybatis.WhereType;
import com.qijian.common.utils.mybatis.WhereTypeEnum;
import lombok.Data;
import lombok.ToString;

import java.util.Date;
import java.util.List;
import java.util.Set;


/**
 * 工艺变更对象 查询条件类
 *
 * @author qijian
 * @date 2022-02-23
 */

@Data
@ToString
@TableName("main_line_change")
public class LineChangeQuery {

    @WhereType(filed = "id", sort = true)
    private Long id;
    @WhereType(filed = "process_instance_id")
    private String processInstanceId;
    @WhereType(filed = "bom_id")
    private Long bomId;
    @WhereType(filed = "user_id")
    private Long userId;
    @WhereType(filed = "bom_name", type = WhereTypeEnum.LIKE)
    private String bomName;
    @WhereType(filed = "code", type = WhereTypeEnum.LIKE)
    private String code;
    @WhereType(filed = "create_by", type = WhereTypeEnum.LIKE)
    private String createBy;
    @WhereType(filed = "approval_by")
    private String approvalBy;
    @WhereType(filed = "approval_time")
    private Date approvalTime;
    @WhereType(filed = "approval_status")
    private String approvalStatus;
    @WhereType(filed = "approval_status", type = WhereTypeEnum.IN)
    private List<String> approvalStatusList;
    @WhereType(filed = "is_exec")
    private Boolean isExec;
    @WhereType(filed = "remark")
    private String remark;
    @WhereType(filed = "id", type = WhereTypeEnum.IN)
    private Set<Long> ids;

    @WhereType(filed = "approval_status", type = WhereTypeEnum.NEQ)
    private String approvalStatusNotEq;
}
